package com.woniuxy.mapper;

import com.woniuxy.entity.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TypeMapper {
    @Select("select * from type")
    List<Type> findAll();

    @Select("select * from type where id=#{id}")
    Type findById(Integer id);
}
